cmake_minimum_required (VERSION 2.8)
project (tactics-engine)

enable_testing()
set_property( GLOBAL PROPERTY USE_FOLDERS On )

get_filename_component(ENGINE_ROOT ${CMAKE_CURRENT_LIST_FILE} PATH)
set(EXTERNALS_ROOT "${ENGINE_ROOT}/externals")
set(TOOLS_ROOT "${ENGINE_ROOT}/tools")

include ("${TOOLS_ROOT}/common.cmake")

######################################################################
add_subdirectory("externals/gtest")
add_externals_target(gtest)
add_externals_target(gtest_main)

######################################################################
include ("${TOOLS_ROOT}/additional_directories.cmake")
include ("${TOOLS_ROOT}/Definitions.cmake")
include("${TOOLS_ROOT}/copy_externals.cmake")

add_compiler_flags_global()

######################################################################
add_subdirectory(libs)
add_subdirectory(prjs)

